package com.hs.srm.admin.modules.cutpay.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.hs.srm.admin.modules.cutpay.service.CutpayItemService;
import com.hs.srm.admin.modules.sys.controller.AbstractController;
import com.hs.srm.common.utils.PageUtils;
import com.hs.srm.common.utils.R;

/**
 * 
 * <p>標題：扣款单行项目controller层</p>
 * <p>描述：</p>
 * <p>版權：版權所有 (c) 2019</p>
 * <p>組織：厚声集团</p>
 *
 * @author 鐘曉籟
 * @version V1.0.0
 * @date 2019年4月2日 上午9:49:54
 * @since V1.0.0
 */
@RestController
@RequestMapping("/cutpayItem")
public class CutpayItemController extends AbstractController {

	/**
	 * 类序列ID
	 */
	private static final long serialVersionUID = -2392337998173025326L;
	
	@Autowired
	private CutpayItemService cutpayItemService;
	
	/**
	 * 查询列表
	 */
	@RequestMapping("/list")
	@ResponseBody
	public R list(@RequestParam Map<String, Object> params) {
		PageUtils pu = this.cutpayItemService.selectDetailPage(params);
		//List<ScmPoItemVo> voList = (List<ScmPoItemVo>)pu.getList();
		//voList = EntityUtils.valToTxt(voList);
		return R.ok(pu);
	}
	
	
	
	

}
